package exam.dao;

import org.example.domain.Teacher;

import java.util.List;
import java.util.Map;

public interface TeacherDao{
    Teacher selectOneTeacherByMnemonic_code(String mnemonic_code);
    void updatePwd(Map<String,String> map);
    Integer selectTeacherTotal(String filterName);

    /**
     *
     * @param map 其中包含了 start length 可能有filterName
     * @return
     */
    List<Teacher> selectTeacherList(Map<String,Object> map);
    void saveOne(Teacher teacher);
    Teacher selectOneTeacherById(Long id);
    List<Teacher> selectListTeacherByName(String tname);
    void updateOneTeacher(Teacher teacher);
    void deleteOneTeacher(Long id);
    List<Teacher> selectAll();
}
